<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>日程表</title>
	</head>
	<body>
		<input name="btn" type="button" value="日程" onclick="richeng()">
		<script type="text/javascript">
			function richeng(){
				var day=prompt("请输入今天星期几:");
				switch(day){
					case "星期一":alert("新的一周开始了");break;
					case "星期二":
					case "星期三":
					case "星期四":alert("努力工作");break;
					case "星期五":alert("明天就周末了");break;
					case "星期六":
					case "星期日":alert("放松的休息");break;
				}
			}
		</script>
	</body>
</html>
